--编写者：alt
--功能介绍：玩家不会惊动小型和中立生物（如鸟、兔子、猪人等）
--使用方法：直接粘贴到模组环境 修改prefablist内的内容 修改tinonlio为人物tag

--RunAway
require "behaviours/runaway"
local notags = { "tinonlio" }
local constructor = GLOBAL.RunAway._ctor
local prefablist = {
    babybeefalo = true,
    koalefant_summer = true,
    koalefant_winter = true,
    pigman = true,
    --bunnyman = true,
    butterfly = true,
    moonbutterfly = true,
} --catcoonbrain cookiecutterbrain crittersbrain
GLOBAL.RunAway._ctor = function(self, inst, ...)
    constructor(self, inst, ...)
    if inst.prefab and prefablist[inst.prefab] then
        if self.hunternotags then
            table.insert(self.hunternotags, "tinonlio")
        else
            self.hunternotags = notags
        end
    end
end
